class Owner < ActiveRecord::Base
  belongs_to :team
  belongs_to :person



  # this field is needed in order for the view to be able to 
  # accept a username when creating a team
  # rails wants us to use fields from the model, but  we really don't
  # want to tie this to the nested model at that point...
  # we need to run a bunch of logic before creating the team object
  def username
  end
  
  def owner_name
    self.person.full_name_and_username
  end

end
